package com.z996.reflect;

import lombok.Data;

/**
 * 简述:<br>
 * 猫类
 *
 * @Author zfh18
 * @Date 2024-03-01 18:20
 * @Version 1.0
 **/
@Data

public class Car {
    //属性
    private String name;
    private int age;
    private String color;

    //无参数构造
    private Car() {
    }

    //有参数构造
    public Car(String name, int age, String color) {
        this.name = name;
        this.age = age;
        this.color = color;
    }

    //普通方法
    private void run() {
        System.out.println("私有方法-run.....");
    }
}
